#!/user/bin/python
#coding = utf-8
import sys
basic = 100000
for line in sys.stdin:
    words = line.strip('\n').split('\t')
    key = words[1]
    value = str(int(words[0])-basic)
    print(key+','+value)